package com.flink.streaming.web.mapper;

import com.flink.streaming.web.model.entity.AzkanbanOfflineSQL;
import com.flink.streaming.web.model.param.AzKaBanParam;
import com.flink.streaming.web.model.vo.AzkanbanOfflineSQLVO;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AzkanbanOfflineSQLMapper {

    int updateDeletedById(@Param("id") Long id);

    List<AzkanbanOfflineSQL> queryListByName(@Param("projectName") String projectName);

    int insert(AzkanbanOfflineSQL offlineSQL);

    Page<AzkanbanOfflineSQLVO> selectByParam(AzKaBanParam azKaBanParam);

    AzkanbanOfflineSQLVO queryById(@Param("id") Long id);

    int update(AzkanbanOfflineSQL offlineSQL);
}
